package com.gopay.common.domain.riskcontrol;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 系统规则表
 * @author zhuliang
 * @date 2016年1月14日
 */
@Entity
@Table(name="RC_SYS_RULE")
public class RcSysRule extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 规则编码
	 */
    @Id
    @Column(name = "CODE")
    private String code;

	/**
	 * 规则名称
	 */
	@Column(name="NAME")
	private String name;
	
	/**
	 * 规则说明
	 */
	@Column(name="EXPLAIN")
	private String explain;

	/**
	 * 规则状态
	 */
	@Column(name="STAT")
	private String stat;
	
	/**
	 * 处理方式
	 */
	@Column(name="DEAL_TYPE")
	private String dealType;
	

	/**
	 * 规则类别
	 */
	@Column(name="CATEGORY")
	private String category;
	
	/**
	 * 备注
	 */
	@Column(name="REMARK")
	private String remark;

	/**
	 * 乐观锁版本号
	 */
	@Column(name="VERSION")
	private Integer version;
	
	/**
	 * 创建时间
	 */
	@Column(name="CREATED_TS")
	private Date createdTs;

	/**
	 * 最后修改时间
	 */
	@Column(name="LAST_UPD_TS")
	private Date lastUpdTs;


//	public String getId() {
//		return id;
//	}
//
//	public void setId(String id) {
//		this.id = id;
//	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public String getStat() {
		return stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}
	
	public String getDealType() {
		return dealType;
	}

	public void setDealType(String dealType) {
		this.dealType = dealType;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

}